package com.yunji.hushuang.combination;

/**
 * @author hushuang
 * @since 2019/10/31
 */
public class OperateProcessor {

    private IOperate operate;

    public OperateProcessor(IOperate operate) {
        this.operate = operate;
    }

    public void process() {
        if (operate.preProcess()) {
            operate.doProcess();
            operate.postProcess();
        }
    }
}
